package msu.ml.data.level2;

public class SpectrumWidthDataProvider implements IRayDataProvider
{
   private Ray ray;
   public SpectrumWidthDataProvider(Ray ray) {this.ray = ray;}
   public IRayDataProvider createForRay(Ray ray) { return new SpectrumWidthDataProvider(ray); }
   public double [] getData() {return ray.getSpectrumWidthData();} 
   public int getGateSize() {return ray.getSpectrumWidthGateSize();}
   public double getDatum(int index) {return ray.getSpectrumWidth(index);}
   public void setDatum(int index, double value){ray.setSpectrumWidth(index, value);}
}

